<?php 
    $theme->display ( 'header' );

	if( count( $posts ) != 0 ) : ?>
			<h2 id="post-search">Search result</h2>
	<?php else : ?>
			<h2 id="post-search">No result</h2>
	<?php endif; 

	foreach($posts as $post):
			$theme->content($post);
	endforeach;
	
	echo "<div id=\"excerpts\" class=\"clear\">";
    foreach($more_posts as $post):
        $theme->nr = (@$theme->nr == 'odd' ? 'even' : 'odd' );
        $theme->content($post, 'aside');
    endforeach;
    echo "</div>";
    
    $theme->display('pagination'); 
    $theme->display('sidebar'); 
    $theme->display ( 'footer' ); 
 ?>
